import axios from "axios";
import { message } from "antd";
const proRequest = axios.create({
    baseURL: "/app-dev",
    timeout: 50000
})

//响应拦截器
proRequest.interceptors.response.use((res: any) => {
    if (res.data.code === 200) return res.data;
    message.error(res.data.message)
    return Promise.reject(res.data);
});
export default proRequest;